package com.spancer.contentcenter.test.event;

/**
 * author by: mars
 * Date: 2020/10/10 14:45
 * Description:
 */
public class SnowListener implements WeatherListener {

    @Override
    public void onWeatherEvent(WeatherEvent event) {
        if (event instanceof SnowEvent) {
            System.out.println("hello ," + event.getWeather());
        }
    }
}
